//
//  Config.m
//  
//
//  Created by qkong on 15/6/13.
//
//

#import "Config.h"

NSString * const kKeyFirstEnter = @"isFirstEnter";

@implementation Config

+ (void)setFirstEnter{
    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
    [userDefaults setObject:@(YES) forKey:kKeyFirstEnter];
    [userDefaults synchronize];
}

+ (BOOL)getFirstEnter{
    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
    id isFirstEnter = [userDefaults objectForKey:kKeyFirstEnter];
    if (isFirstEnter == nil) {
        return false;
    }else{
        return (BOOL)isFirstEnter;
    }
}

@end
